package com.gang.music.system.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gang.music.system.entity.Menu;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author gang
 * @since 2017-10-29
 */
public interface MenuMapper extends BaseMapper<Menu> {

	List<Menu> selectByParentId(int parentId);

	List<Menu> selectForTreeTable(int menuId);

	List<Menu> selectByParentIdWithChildList(Integer parentId);

	Menu selectByIdWithParent(Integer id);

	void batchDelete(List<Integer> delMenuIds);

}